Exists checkpoints verify that a window or control exists in the application. The checkpoint fails if the window or control is not found during playback.
Note: If windows or controls are added to an application after the script is recorded, you may need to capture the new objects before you can create checkpoints for them. You can record a new script to capture the objects or populate the repository to add windows and controls without recording. See Populating repositories.
1. Select the script line above where to add the statement.
2. Choose Script > Add Statement.
The Add Statement dialog box opens.
3. Select Check Exists in the Checkpoint category.
4. The Application/version field is automatically set with the context. This information is used to populate the Window and Control fields on the Add Statement dialog box with values from the application repository.
If QA Wizard Pro cannot identify the context, None is selected. This usually occurs when you add statements to a utility script that is only called by other scripts because the context is set in the script that calls it. If an application/version is required, select it from the list.
5. Select the Window to check.
A screenshot of the selected window is displayed.
6. If you are creating a control checkpoint, select the Control to check.
The selected control is outlined with a red box in the screenshot.
7. Select Item within to check items in a combo box, menu, list box, tab, or tree. You can use a text string (default), expression, datasheet column value, variable, or function that returns the value.
8. If you are creating a context menu item checkpoint, select Context Menu Item.
9. Expand the Advanced options to indicate what happens if the checkpoint fails.
10. Enter an optional Comment, such as the purpose of the statement.
11. Click OK to add the statement to the script.